﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using Logic;

namespace BouquetApplication
{
    public class BouquetPrinter
    {
        public void Print(Bouquet bouquet)
        {
            //TODO: ВЫВЕСТИ НА КОНСОЛЬ
            BouquetLogic logic = new BouquetLogic();
            int totalPrice = logic.GetTotalPrice(bouquet);
            Console.WriteLine("totalPrice = " + totalPrice);

            List<AbstractPlant> plants = bouquet.Plants;
            for (int i = 0; i < plants.Count; i++)
            {
                AbstractPlant plant = plants[i];
                Console.WriteLine("FlowerName = " + plant.Name);
                Console.WriteLine("FlowerPrice = " + plant.Price);
            }

        }
    }
}
